-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Podman to send the container's hostname to Netavark #2254
Allow Podman to send the container's hostname to Netavark #2254
Conversation
Signed-off-by: George Joseph <[email protected]>
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added field is fine. Makes more sense to me than using the container ID honestly. |
31b6f9e
to
eb88c0e
Compare
eb88c0e
to
a88971b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gtjoseph, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
* Added ContainerHostname to NetworkOptions. Podman will set this and Netavark will read it. * Added the `container_name_as_hostname` option to the CONTAINERS table in containers.conf. Currently, if you don't explicitly set a hostname when creating a container, podman will set it to the short ID. If this option set to `true` and a hostname isn't explicitly set, podman will use the container's name, with characters not in the set `[0-9a-zA-Z.-]` removed, as the hostname instead of the short ID. Set to false by default to preserve existing behavior. Signed-off-by: George Joseph <[email protected]>
a88971b
to
2a3e1c1
Compare
Signed-off-by: George Joseph <[email protected]>
Signed-off-by: George Joseph <[email protected]>
/lgtm |
Added ContainerHostname to NetworkOptions. Podman will set this
and Netavark will read it.
Added the
container_name_as_hostname
option to theCONTAINERS table in containers.conf. Currently, if you don't
explicitly set a hostname when creating a container, podman will
set it to the short ID. If this option set to
true
and ahostname isn't explicitly set, podman will use the container's
name, with characters not in the set
[0-9a-zA-Z.-]
removed,as the hostname instead of the short ID. Set to false by default
to preserve existing behavior.
Signed-off-by: George Joseph [email protected]
Required by containers/podman#24675
Required by containers/netavark#1130